
const { ccclass, property } = cc._decorator;

@ccclass
export default class UpDownComp extends cc.Component {


    @property
    time: number = 0.5;

    @property
    dis: number = 20;

    start() {
        cc.tween(this.node).repeatForever(cc.tween(this.node).by(this.time, { y: this.dis }).by(this.time, { y: -this.dis })).start();
    }

    // update (dt) {}
}
